/**
 * @Title: RightsService.java
 * @Package com.kaver.sso.service
 * @author roc
 * @date Aug 9, 2021 2:37:46 PM
 * @version V1.0
 * @copyright kaver
 */
package com.kaver.sso.service;

import java.util.List;

import com.kaver.sso.def.dto.RightsDto;
import com.kaver.sso.def.req.AddRightsReq;
import com.kaver.sso.def.req.DelRightsReq;
import com.kaver.sso.def.req.GroupRightsReq;
import com.kaver.sso.def.req.HasRightsReq;
import com.kaver.sso.def.req.RoleRightsReq;
import com.kaver.sso.def.req.SetRightsReq;
import com.kaver.sso.def.req.UpdateRightsReq;
import com.kaver.sso.def.req.UserRightsReq;

/**
 * @ClassName: RightsService
 * @Description: 权限
 * @author roc
 * @date Aug 9, 2021 2:37:46 PM
 * 
 */
public interface RightsService {
    /**
     * 添加权限
     */
    void addRights(AddRightsReq req);

    /**
     * 删除权限
     */
    void delRights(DelRightsReq req);

    /**
     * 更新权限
     */
    void updateRights(UpdateRightsReq req);

    /**
     * 角色设置权限
     */
    void setRights(SetRightsReq req);
    /**
     * 组权限
     * */
    List<RightsDto> groupRights (GroupRightsReq req);
    /**
     * 获取角色权限列表
     */
    List<RightsDto> roleRights(RoleRightsReq req);

    /**
     * 获取用户权限列表
     */
    List<RightsDto> userRights(UserRightsReq req);
    /**
     * 判断用户是否有权限
     * */
    Integer hasRights(HasRightsReq req);
}
